#ifndef __APP_H__
#define __APP_H__

#include "app_cfg.h"

#include "sdk_ifs_udk_cfg.h"

/*系统级定义，勿修改⬇*/
#if !defined(sUDF_global)
#define sUDF_global (*(sUDF_global_t*)(UDF_DST_ADDR))
#endif
/*系统级定义，勿修改⬆*/

#if 0
#elif DEMO_CFG == DEMO_CFG_INNER_APP
#include "../Demo_INNER_APP/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_INNER_APP/radar_user_def.h"
#include "../Demo_INNER_APP/udc_def.h"
#include "../Demo_INNER_APP/udp_def.h"
#include "../Demo_INNER_APP/app_def.h"
#include "../Demo_INNER_APP/udsf_demo_inner_app.c"
#elif DEMO_CFG == DEMO_CFG_INNER_APP_CP_TEST
#include "../Demo_INNER_APP_CP_TEST/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_INNER_APP_CP_TEST/radar_user_def.h"
#include "../Demo_INNER_APP_CP_TEST/udc_def.h"
#include "../Demo_INNER_APP_CP_TEST/udp_def.h"
#include "../Demo_INNER_APP_CP_TEST/app_def.h"
#include "../Demo_INNER_APP_CP_TEST/udsf_demo_inner_app_cp_test.c"
#elif DEMO_CFG == DEMO_CFG_INNER_APP_DUAL
#include "../Demo_INNER_APP_DUAL/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_INNER_APP_DUAL/radar_user_def.h"
#include "../Demo_INNER_APP_DUAL/udc_def.h"
#include "../Demo_INNER_APP_DUAL/udp_def.h"
#include "../Demo_INNER_APP_DUAL/app_def.h"
#include "../Demo_INNER_APP_DUAL/udsf_demo_inner_app_dual.c"
#elif DEMO_CFG == DEMO_CFG_RAMAPP
#include "../Demo_RAMAPP/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_RAMAPP/radar_user_def.h"
#include "../Demo_RAMAPP/udc_def.h"
#include "../Demo_RAMAPP/udp_def.h"
#include "../Demo_RAMAPP/app_def.h"
#if 0
#include "../Demo_RAMAPP/udsf_demo_ramapp.c"
#endif
#elif DEMO_CFG == DEMO_CFG_RAMAPP_DUAL_UDF
#include "../Demo_RAMAPP_DUAL_UDF/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_RAMAPP_DUAL_UDF/radar_user_def.h"
#include "../Demo_RAMAPP_DUAL_UDF/udc_def.h"
#include "../Demo_RAMAPP_DUAL_UDF/udp_def.h"
#include "../Demo_RAMAPP_DUAL_UDF/app_def.h"
#if 0
#include "../Demo_RAMAPP_DUAL_UDF/udsf_demo_ramapp_dual_udf.c"
#endif
#elif DEMO_CFG == DEMO_CFG_RAMAPP_UART_ISP_SUPPORT
#include "../Demo_RAMAPP_UART_ISP_SUPPORT/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_RAMAPP_UART_ISP_SUPPORT/radar_user_def.h"
#include "../Demo_RAMAPP_UART_ISP_SUPPORT/udc_def.h"
#include "../Demo_RAMAPP_UART_ISP_SUPPORT/udp_def.h"
#include "../Demo_RAMAPP_UART_ISP_SUPPORT/app_def.h"
#if 0
#include "../Demo_RAMAPP_UART_ISP_SUPPORT/udsf_demo_ramapp_uart_isp_support.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_DUAL
#include "../Demo_APP_DUAL/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_DUAL/radar_user_def.h"
#include "../Demo_APP_DUAL/udc_def.h"
#include "../Demo_APP_DUAL/udp_def.h"
#include "../Demo_APP_DUAL/app_def.h"
#if 0
#include "../Demo_APP_DUAL/udsf_demo_app_dual.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_DUAL_UDF_AT_SRAM
#include "../Demo_APP_DUAL_UDF_AT_SRAM/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_DUAL_UDF_AT_SRAM/radar_user_def.h"
#include "../Demo_APP_DUAL_UDF_AT_SRAM/udc_def.h"
#include "../Demo_APP_DUAL_UDF_AT_SRAM/udp_def.h"
#include "../Demo_APP_DUAL_UDF_AT_SRAM/app_def.h"
#if 0
#include "../Demo_APP_DUAL_UDF_AT_SRAM/udsf_demo_app_dual_udf_at_sram.c"
#endif

#elif DEMO_CFG == DEMO_CFG_APP_OPT_DATA
#include "../Demo_APP_OPT_DATA/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_OPT_DATA/radar_user_def.h"
#include "../Demo_APP_OPT_DATA/udc_def.h"
#include "../Demo_APP_OPT_DATA/udp_def.h"
#include "../Demo_APP_OPT_DATA/app_def.h"
#if 0
#include "../Demo_APP_OPT_DATA/udsf_demo_app_opt_data.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_SECURE
#include "../Demo_APP_SECURE/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_SECURE/radar_user_def.h"
#include "../Demo_APP_SECURE/udc_def.h"
#include "../Demo_APP_SECURE/udp_def.h"
#include "../Demo_APP_SECURE/app_def.h"
#if 0
#include "../Demo_APP_SECURE/udsf_demo_app_secure.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_TEST_CSTD_LIB
#include "../Demo_APP_TEST_CSTD_LIB/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_TEST_CSTD_LIB/radar_user_def.h"
#include "../Demo_APP_TEST_CSTD_LIB/udc_def.h"
#include "../Demo_APP_TEST_CSTD_LIB/udp_def.h"
#include "../Demo_APP_TEST_CSTD_LIB/app_def.h"
#if 0
#include "../Demo_APP_TEST_CSTD_LIB/udsf_demo_app_test_cstd_lib.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_TEST_FLASH
#include "../Demo_APP_TEST_FLASH/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_TEST_FLASH/radar_user_def.h"
#include "../Demo_APP_TEST_FLASH/udc_def.h"
#include "../Demo_APP_TEST_FLASH/udp_def.h"
#include "../Demo_APP_TEST_FLASH/app_def.h"
#if 0
#include "../Demo_APP_TEST_FLASH/udsf_demo_app_test_flash.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_TEST_STACK
#include "../Demo_APP_TEST_STACK/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_TEST_STACK/radar_user_def.h"
#include "../Demo_APP_TEST_STACK/udc_def.h"
#include "../Demo_APP_TEST_STACK/udp_def.h"
#include "../Demo_APP_TEST_STACK/app_def.h"
#if 0
#include "../Demo_APP_TEST_STACK/udsf_demo_app_test_stack.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_TEST_SPEED
#include "../Demo_APP_TEST_XIP_SPEED/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_TEST_XIP_SPEED/radar_user_def.h"
#include "../Demo_APP_TEST_XIP_SPEED/udc_def.h"
#include "../Demo_APP_TEST_XIP_SPEED/udp_def.h"
#include "../Demo_APP_TEST_XIP_SPEED/app_def.h"
#if 0
#include "../Demo_APP_TEST_XIP_SPEED/udsf_demo_app_test_xip_speed.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_TIMERA
#include "../Demo_APP_TIMERA/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_TIMERA/radar_user_def.h"
#include "../Demo_APP_TIMERA/udc_def.h"
#include "../Demo_APP_TIMERA/udp_def.h"
#include "../Demo_APP_TIMERA/app_def.h"
#if 0
#include "../Demo_APP_TIMERA/udsf_demo_app_timerA.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_TEST_TEMP
#include "../Demo_APP_TEST_TEMP/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_TEST_TEMP/radar_user_def.h"
#include "../Demo_APP_TEST_TEMP/udc_def.h"
#include "../Demo_APP_TEST_TEMP/udp_def.h"
#include "../Demo_APP_TEST_TEMP/app_def.h"
#if 0
#include "../Demo_APP_TEST_TEMP/udsf_demo_app_test_temp.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_UART_CFG
#include "../Demo_APP_UART_CFG/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_UART_CFG/radar_user_def.h"
#include "../Demo_APP_UART_CFG/udc_def.h"
#include "../Demo_APP_UART_CFG/udp_def.h"
#include "../Demo_APP_UART_CFG/app_def.h"
#if 0
#include "../Demo_APP_UART_CFG/udsf_demo_app_uart_cfg.c"
#endif
#elif DEMO_CFG == DEMO_CFG_APP_UART_OTA
#include "../Demo_APP_UART_OTA/udk_user_def.h"
#include "udk_default_def.h"
#include "radar_def.h"
#include "../Demo_APP_UART_OTA/radar_user_def.h"
#include "../Demo_APP_UART_OTA/udc_def.h"
#include "../Demo_APP_UART_OTA/udp_def.h"
#include "../Demo_APP_UART_OTA/app_def.h"
#if 0
#include "../Demo_APP_UART_OTA/udsf_demo_app_uart_ota.c"
#endif
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_SAMPLE
#include "../Demo_RADAR_APP_SAMPLE/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_APP_SAMPLE/radar_user_pre_def.h"
#include "radar_def.h"
#include "../Demo_RADAR_APP_SAMPLE/radar_user_def.h"
#include "../Demo_RADAR_APP_SAMPLE/udc_def.h"
#include "../Demo_RADAR_APP_SAMPLE/udp_def.h"
#include "../Demo_RADAR_APP_SAMPLE/app_def.h"
#if 0
#include "../Demo_RADAR_APP_SAMPLE/udsf_demo_radar_app_sample.c"
#endif
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_TOILET
#include "../Demo_RADAR_APP_TOILET/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_APP_TOILET/radar_user_pre_def.h"
#include "radar_def.h"
#include "../Demo_RADAR_APP_TOILET/radar_user_def.h"
#include "../Demo_RADAR_APP_TOILET/udc_def.h"
#include "../Demo_RADAR_APP_TOILET/udp_def.h"
#include "../Demo_RADAR_APP_TOILET/app_def.h"
#include "../Demo_RADAR_APP_TOILET/udsf_demo_radar_app_toilet.c"
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_HP_TRACE
#include "../Demo_RADAR_APP_HP_TRACE/udk_user_def.h"     // UDKv3 相关定义
#include "udk_default_def.h"
#include "../Demo_RADAR_APP_HP_TRACE/radar_user_pre_def.h" // 雷达相关预定义参数 客户自定义
#include "radar_def.h"
#include "../Demo_RADAR_APP_HP_TRACE/radar_user_def.h"     // 雷达定义
#include "../Demo_RADAR_APP_HP_TRACE/udc_def.h"            // 系统参数
#include "../Demo_RADAR_APP_HP_TRACE/udp_def.h"            // 应用参数
#include "../Demo_RADAR_APP_HP_TRACE/app_def.h"            // 应用定义 全局变量
#if 0
#include "../Demo_RADAR_APP_HP_TRACE/udsf_demo_radar_app_hp_trace.c" // 应用代码
#endif
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_LPW
#include "../Demo_RADAR_APP_LPW/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_APP_LPW/radar_user_pre_def.h"
#include "radar_def.h"
#include "../Demo_RADAR_APP_LPW/radar_user_def.h"
#include "../Demo_RADAR_APP_LPW/udc_def.h"
#include "../Demo_RADAR_APP_LPW/udp_def.h"
#include "../Demo_RADAR_APP_LPW/app_def.h"
#include "../Demo_RADAR_APP_LPW/udsf_demo_radar_app_lpw.c"
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_LP_TRIGGER
#include "../Demo_RADAR_APP_LP_TRIGGER/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER/radar_user_pre_def.h"
#include "radar_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER/radar_user_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER/udc_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER/udp_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER/app_def.h"
#if 0
#include "../Demo_RADAR_APP_LP_TRIGGER/udsf_demo_radar_app_lp_trigger.c"
#endif
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_LP_TRIGGER_OUTDOOR
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/radar_user_pre_def.h"
#include "radar_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/radar_user_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/udc_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/udp_def.h"
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/app_def.h"
#if 0
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/udsf_demo_radar_app_lp_trigger_outdoor.c"
#endif
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_RF_TEST
#include "../Demo_RADAR_APP_RF_TEST/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_APP_RF_TEST/radar_user_pre_def.h"
#include "radar_def.h"
#include "../Demo_RADAR_APP_RF_TEST/radar_user_def.h"
#include "../Demo_RADAR_APP_RF_TEST/udc_def.h"
#include "../Demo_RADAR_APP_RF_TEST/udp_def.h"
#include "../Demo_RADAR_APP_RF_TEST/app_def.h"
#if 0
#include "../Demo_RADAR_APP_RF_TEST/udsf_demo_radar_app_rf_test.c"
#endif
#elif DEMO_CFG == DEMO_CFG_RADAR_60G_APP_SAMPLE
#define FMCW_RADAR_4D
#define USE_EXRF_RC6011
//#define USE_EXRF_RC6011C
//#define USE_EXRF_RC6011AIP
#include "../OPT_DEF/exrf_def.h"
#include "../Demo_RADAR_60G_APP_SAMPLE/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_60G_APP_SAMPLE/radar_user_pre_def.h"
#include "../OPT_DEF/exrf_radar_def.h"
#include "../Demo_RADAR_60G_APP_SAMPLE/radar_user_def.h"
#include "../Demo_RADAR_60G_APP_SAMPLE/udc_def.h"
#include "../Demo_RADAR_60G_APP_SAMPLE/udp_def.h"
#include "../Demo_RADAR_60G_APP_SAMPLE/app_def.h"
#if 0
#include "../Demo_RADAR_60G_APP_SAMPLE/udsf_demo_radar_60g_app_sample.c"
#endif

#elif DEMO_CFG == DEMO_CFG_RADAR_60G_APP_STD
#define FMCW_RADAR_4D
#define USE_EXRF_RC6011
//#define USE_EXRF_RC6011C
//#define USE_EXRF_RC6011AIP
#include "../OPT_DEF/exrf_def.h"
#include "../Demo_RADAR_60G_APP_STD/udk_user_def.h"
#include "udk_default_def.h"
#include "../Demo_RADAR_60G_APP_STD/radar_user_pre_def.h"
#include "../OPT_DEF/exrf_radar_def.h"
#include "../Demo_RADAR_60G_APP_STD/radar_user_def.h"
#include "../Demo_RADAR_60G_APP_STD/udc_def.h"
#include "../Demo_RADAR_60G_APP_STD/udp_def.h"
#include "../Demo_RADAR_60G_APP_STD/app_def.h"
#if 0
#include "../Demo_RADAR_60G_APP_STD/udsf_demo_radar_60g_app_std.c"
#endif
#else
#error error
#endif

#include "app_api_cfg.h"

#endif
